<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询页面</title>
    {include file='common/header'}
</head>
<body>
<h1>温度曲线项目</h1>
<hr>
<h1>插入温度页面</h1>
<div class="col-sm-12">
    <div class="ibox-content">
        <div class="col-sm-3 col-lg-offset-4 m-b-xs">
            <h1>插入温度数据</h1>
            <form action="{:url('index/Tempindex/into')}" method="post">
                <button class="btn btn-primary " type="submit"><i class="fa fa-check"></i>&nbsp;提交</button>
                <a href="tempindex.html">去查询</a>
                <div class="form-group">
                    <input id="deadline" name="date" value='选择日期' class="laydate-icon form-control">
                </div>
                <select class="input-sm form-control input-s-sm inline" name = 'pid'>
                    <option value="0">选择纸种</option>
                    {foreach $data as $paper => $pid}
                    <option value="{$pid['pid']}">{$pid['paperName']}</option>
                    {/foreach}
                </select>
                <select class="input-sm form-control input-s-sm inline" name="wid">
                    <option value="0">定量</option>
                    {foreach $weight as $weight}
                    <option value="{$weight['weight']}">{$weight['weight']}</option>
                    {/foreach}
                </select>

                <div class="form-group" id="dryer">
                    一烘:<br>
                    <input type="text" class="dryer" value="1号缸" name="dryer1">
                    <input type="text" class="dryer" value="2号缸" name="dryer2">
                    <input type="text" class="dryer" value="3号缸" name="dryer3">
                    <br>
                    二烘:<br>
                    <input type="text" class="dryer" value="4号缸" name="dryer4">
                    <input type="text" class="dryer" value="5号缸" name="dryer5">
                    <input type="text" class="dryer" value="6号缸" name="dryer6">
                    <input type="text" class="dryer" value="7号缸" name="dryer7">
                    <input type="text" class="dryer" value="8号缸" name="dryer8">
                </div>
            </form>
        </div>
    </div>

</div>

<script>
    laydate({
        elem:'#deadline',
        event:'focus',
        format:'YYYY-MM-DD',
        istime: true,
    });

    $('.dryer').focus(function () {
        console.log(1);
        $(this).val('');
    })

</script>



</body>
</html>